﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using RBAC.Service.Dto;

namespace RBAC.Service.Dto
{
    [DataContract]
    public class PermissionDto : BaseDto
    {
        [DataMember]
        public int? ProjectId { get; set; }
        //string
        private String _permissionname;
        [DataMember]
        public String PermissionName { get { return string.IsNullOrEmpty(_permissionname) ? null : _permissionname.Trim(); } set { _permissionname = value; } }
        //string
        private String _description;
        [DataMember]
        public String Description { get { return string.IsNullOrEmpty(_description) ? null : _description.Trim(); } set { _description = value; } }
        //[DataMember]
        //public DateTime CreateDate { get; set; }
        //lookup
        [DataMember]
        public RoleDto Role { get; set; }
        //lookup
        [DataMember]
        public FunctionDto Function { get; set; }

        //Pickup List
        //[DataMember]
        //public int PermissionStatus { get; set; }
        //lookup
        [DataMember]
        public RoleDto RoleLookup { get; set; }
        //parent class of Permission
        //[DataMember]
        //public RoleDto Role { get; set; }
    }

}